package main

import "fmt"
import "sort"

func main() {
	intList := []int{89, 29, 40, 36, 42, 59, 100, 24, 10, 5, 58}
	floatList := []float64{28.9, 48.8, 76.3, 79.1, 52.3}
	stringList := []string{"杭州", "福州", "厦门", "泉州", "莆田", "宁德", "镇江"}
	sort.Sort(sort.IntSlice(intList))
	sort.Sort(sort.Float64Slice(floatList))
	sort.Sort(sort.StringSlice(stringList))
	fmt.Println("intlist=", intList)
	fmt.Println("floatList=", floatList)
	fmt.Println("stringList=", stringList)
	sort.Sort(sort.Reverse(sort.IntSlice(intList)))
	sort.Sort(sort.Reverse(sort.Float64Slice(floatList)))
	sort.Sort(sort.Reverse(sort.StringSlice(stringList)))
	fmt.Println("intlist=", intList)
	fmt.Println("floatList=", floatList)
	fmt.Println("stringList=", stringList)
}
